#include <stdio.h>
#include "linkList.h"

void test1(){
    LinkList_t* table = createLinkList();
    if(table == NULL){
        return ;
    }
    for(int i = 0; i < 5; i++){
        insertLinkListHeader(table,i+100);
    }

    showLinkList(table);
    printf("=============================\n");
    deleteLinkListElement(table,101);
    showLinkList(table);
    printf("=============================\n");
    insertLinkListPos(table,2,600);
    showLinkList(table);
    printf("=============================\n");
    printf("We will delete the linklist\n");
    printf("=============================\n");
    releaseLinkList(table);
    table = NULL;  //防止野指针

}

int main(){
    test1();
    return 0;
}